package org.app.entities;
//用户
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

public class Users extends Info{

	private long id;
	private String username="#",password="*";
	
	Info info;
	List<Users> list;
	Info [] is;
	
	Map<String,Object> map;
	
	
	
	
/*	public long getId() {
		return id;
	}
*/	
	
	
	public Object getId() {
		return id;
	}
	
	
	
	public void setId(Object id) {
		this.id =Long.parseLong( id.toString());
	}
	
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}



	public Info getInfo() {
		return info;
	}



	public void setInfo(Info info) {
		this.info = info;
	}
	
	
	
	public List<Users> getList() {
		return list;
	}


	


	public void setList(List<Users> list) {
		this.list = list;
	}



	public String toString(){

		String list="list[";
		if(this.list!=null)
		for(Users u:this.list){
			list+=u;
		}
		list+="]\t";
		
		String is="is[";
		if(this.is!=null)
		for(Info u:this.is){
			is+=u;
		}
		is+="]\t";
		
		String m="Map{";
		if(map!=null)
			for(Object obj:map.entrySet()){
				Entry entry=(Entry) obj;
				m+=entry.getKey()+","+entry.getValue()+";";
			}

		m+="}";
				return is+this.info+"\t()\tid:"+id+"*username\t"+username+password+list+m;
	}



	public Info[] getIs() {
		return is;
	}



	public void setIs(Info[] is) {
		this.is = is;
	}



	public Map<String,Object> getMap() {
		return map;
	}



	public void setMap(Map map) {
		this.map = map;
	}
	
	
	
}
